home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / test / CubeViewUI.fl < prev    next >
Encoding:
FLTK User Interface Designer  |  1999-02-22  |  2.4 KB  |  79 lines

  1. # data file for the Fltk User Interface Designer (fluid)
  2. version 1.00 
  3. header_name {.h} 
  4. code_name {.cxx} 
  5. gridx 2 
  6. gridy 2 
  7. snap 2
  8. class CubeViewUI {open
  9. } {
  10.   Function {CubeViewUI()} {open
  11.   } {
  12.     Fl_Window mainWindow {
  13.       label CubeView open selected
  14.       private xywh {428 124 419 406} box UP_BOX labelsize 12 resizable visible
  15.     } {
  16.       Fl_Group {} {open
  17.         xywh {5 3 374 399}
  18.       } {
  19.         Fl_Group VChange {open
  20.           xywh {5 100 37 192}
  21.         } {
  22.           Fl_Roller vrot {
  23.             label {V Rot}
  24.             callback {cube->v_angle(((Fl_Roller *)o)->value());
  25. cube->redraw();}
  26.             xywh {5 100 17 186} labeltype NO_LABEL labelsize 12 align 128 minimum -180 maximum 180 step 1
  27.             code0 {\#include <stdio.h>}
  28.           }
  29.           Fl_Slider ypan {
  30.             label {V Pan}
  31.             callback {cube->pany(((Fl_Slider *)o)->value());
  32. cube->redraw();}
  33.             xywh {25 100 17 186} type {Vert Knob} selection_color 136 labeltype NO_LABEL labelsize 12 align 0 minimum -25 maximum 25 step 0.1
  34.           }
  35.         }
  36.         Fl_Group HChange {open
  37.           xywh {120 362 190 40}
  38.         } {
  39.           Fl_Slider xpan {
  40.             label {H Pan}
  41.             callback {cube->panx(((Fl_Slider *)o)->value());
  42. cube->redraw();}
  43.             xywh {122 364 186 17} type {Horz Knob} selection_color 136 labeltype NO_LABEL labelsize 12 align 16 minimum 25 maximum -25 step 0.1
  44.           }
  45.           Fl_Roller hrot {
  46.             label {H Rotation}
  47.             callback {cube->h_angle(((Fl_Roller *)o)->value());
  48. cube->redraw();}
  49.             xywh {122 383 186 17} type Horizontal labeltype NO_LABEL labelsize 12 align 8 minimum -180 maximum 180 step 1
  50.           }
  51.         }
  52.         Fl_Group MainView {open
  53.           xywh {46 27 333 333}
  54.         } {
  55.           Fl_Box cframe {
  56.             xywh {46 27 333 333} box DOWN_FRAME color 4 selection_color 69
  57.           }
  58.           Fl_Box cube {
  59.             label {This is the cube_view}
  60.             xywh {48 29 329 329}
  61.             code0 {\#include "CubeView.h"}
  62.             class CubeView
  63.           }
  64.         }
  65.         Fl_Value_Slider zoom {
  66.           label Zoom
  67.           callback {cube->size=((Fl_Value_Slider *)o)->value();
  68. cube->redraw();}
  69.           xywh {106 3 227 19} type {Horz Knob} selection_color 136 labelfont 1 labelsize 12 align 4 minimum 1 maximum 50 step 0.1 value 10 textfont 1
  70.         }
  71.       }
  72.     }
  73.   }
  74.   Function {show()} {open
  75.   } {
  76.     code {mainWindow->show();} {}
  77.   }
  78.